package com.accesshollywood.indexables.items;

import com.accesshollywood.indexables.Indexed;

public class TextIndexed extends Indexed {
	protected String	str	= "";

	public TextIndexed() {
		super();
		initSQL();
	}

	public TextIndexed(int id, String newText) {
		super(id);
		initSQL();
	}

	public void initSQL() {
		setThat(this);
		tableName = "text";
		idColumnName = "idText";
		elementColumnName.put(getField("str"), "text");
	}
	
	public synchronized String getStr() {
		return str;
	}

	public synchronized void setStr(String text) {
		this.str = text;
	}
	
	public String toString(){
		return str;
	}
	
	public void fromString(String str){
		this.str = str;
	}
}
